package logic.teacherQuery_logic;

import java.util.Date;
import po.TeacherPO;
import datasv.datafactorysv.TeacherQueryDatasvFactory;
import datasv.teacherQuery_datasv.TeacherQueryDatasv;

public class Teacher {
	private TeacherQueryDatasv teacherQD;
	private String teacherID;
	private TeacherPO teacherInfo;
	public Teacher(String teacherID){
		this.teacherID = teacherID;
		teacherQD = new TeacherQueryDatasvFactory().create();
		teacherInfo = teacherQD.getTeacher(teacherID);
	}
	public String getTeacherID(){
		return teacherID;
	}
	public String getName(){
		return teacherInfo.getName();
	}
	public String getCollegeID(){
		return teacherInfo.getCollegeID();
	}
	public int getWorkStartYear(){
		return teacherInfo.getWorkStartYear();
	}
	public Date getBirthday(){
		return teacherInfo.getBirthday();
	}
}
